#ifndef JIYIFANPAI_H
#define JIYIFANPAI_H
#include <QPainter>
#include <QEvent>
#include <QMouseEvent>
#include <QString>
#include <QImage>
#include <QRect>
#include <QMessageBox>
class jiyifanpai
{
public:
    jiyifanpai();
    void initMap();
    void drawMap(QPainter* pDraw);
    void mousePressEvent(QMouseEvent *event);
    bool gameOver();
    
protected:
    int map[4][4];
        int time=0;
        int x1,y1;
        int x2,y2;
        int BLOCK_HEIGHT=200;
        int BLOCK_WIDTH=200;

};

#endif // JIYIFANPAI_H
